<extend name="Public:base" />
<block name="header" >
    <!--<span class="action-span"><a href="#">积分商城详情列表</a></span>-->
    <span class="action-span1"><a href="#">武汉同兴一站办企业服务有限公司 管理中心</a></span>
    <span id="search_id" class="action-span1"> - 积分商城详情列表 </span>
    <div style="clear:both"></div>
</block>

<block name="body">

<!-- 商品列表 -->

<div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1">
        <form action="{:U('integral_goodsedit')}" method="post" id="fo">
            <volist name="data" id="vo" key="sort">
                <tr>
                    <th>编号</th>
                    <td><input type="text" value="{$vo.integral_goodsinfo_id}" disabled="disabled" style="width: 350px;height: 30px;border-radius: 12px;"></td>
                </tr>
                <tr>
                    <th>积分商品</th>
                    <td><input type="text" value="{$vo.integral_goods_ids}" disabled="disabled" style="width: 350px;height: 30px;border-radius: 12px;"></td>
                </tr>
                <tr>
                    <th>商品详情</th>
                    <td><input type="text" value="{$vo.goods_info}" name="goods_info" id="goods_info" style="width: 350px;height: 30px;border-radius: 12px;"></td>
                </tr>
                <tr>
                    <th>seo页面标题</th>
                    <td><input type="text" value="{$vo.seo_title}" name="seo_title" id="seo_title" style="width: 350px;height: 30px;border-radius: 12px;"></td>
                </tr>
                <tr>
                    <th>seo页面关键词</th>
                    <td><input type="text" value="{$vo.seo_keywords}" name="seo_keywords" id="seo_keywords" style="width: 350px;height: 30px;border-radius: 12px;"></td>
                </tr>
                <tr>
                    <th>seo页面描述</th>
                    <td><input type="text" value="{$vo.seo_description}" name="seo_description" id="seo_description" style="width: 350px;height: 30px;border-radius: 12px;"></td>
                </tr>
            </volist>
                <tr><input type="hidden" value="{$id}" name="integral_goodsinfo_id">
                    <th colspan="2"><input type="button" id="tijiao" value="提交"/></th>
                </tr>
        </form>
    </table>
</div>
    <script type="text/javascript">
        var btn=document.getElementById("tijiao");
        var a=document.getElementById("goods_info").value;
        var b=document.getElementById("seo_title").value;
        var c=document.getElementById("seo_keywords").value;
        var d=document.getElementById("seo_description").value;
        btn.addEventListener('click',function (e) {
            goods_info=document.getElementById("goods_info").value;
            seo_title=document.getElementById("seo_title").value;
            seo_keywords=document.getElementById("seo_keywords").value;
            seo_description=document.getElementById("seo_description").value;
            if(goods_info==''){
                alert('积分商品信息不能提交空值')
            }else if(seo_title==''){
                alert('seo页面标题不能提交空值')
            }else if(seo_keywords==''){
                alert('seo页面关键词不能提交空值')
            }else if(seo_description==''){
                alert('seo页面描述不能提交空值')
            }else if(a==goods_info && b==seo_title && c==seo_keywords && d==seo_description){
                alert('没有改变任何值！')
            }else{
                document.getElementById('fo').submit()
            }
        },true);
    </script>
</block>